﻿using Myu.Redis.Init;
using Myu.Redis.Interface;
using Myu.Redis.Service;
using ServiceStack.Redis;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace productServer
{
    class Program
    {
      
        static void Main(string[] args)
        {
            using (var redisBase = new RedisStringService())
            {
                //int i = 0;
                //while(i<10000)
                //{
                //    redisBase.Set("test", "ccccc");
                //    Console.WriteLine($"写入测试{i}成功");
                //    Thread.Sleep(1000);
                //    i++;
                //    //Task.Delay(1000).ContinueWith((x)=> {
                //    //    i++;
                //    //});
                //}
                redisBase.Set("test", "sssss");
                redisBase.Dispose();
            }
        }
    }
}
